<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ page import="org.tobuy.vo.*" %>


	<script language="javascript">
		function changeToBook(){
			document.getElementById("a1").innerHTML = "ISBN:";
			document.getElementById("a2").innerHTML = "Publisher:";
			document.getElementById("a3").innerHTML = "Author:";
			document.getElementById("a4").innerHTML = "Gebunde:";
		}
		function changeToGame(){
			document.getElementById("a1").innerHTML = "Plattform:";
			document.getElementById("a2").innerHTML = "Age Restriction:";
			document.getElementById("a3").innerHTML = "Producer:";
			document.getElementById("a4").innerHTML = "Catigory:";
		}
		function changeToDvd(){
			document.getElementById("a1").innerHTML = "Play Time:";
			document.getElementById("a2").innerHTML = "Region:";
			document.getElementById("a3").innerHTML = "Producer:";
			document.getElementById("a4").innerHTML = "Age restriction:";
		}
	</script>

  
  <% User user = (User)session.getAttribute("user");%>
  <h1><%=user.getUser_name() %></h1>
  <div>
    <form action="ItemEstablishServlet" method="post">
    	Book<input type="radio" name="type" value="book" CHECKED onclick="changeToBook()">
    	Game<input type="radio" name="type" value="game" onclick="changeToGame()">
    	Dvd<input type="radio" name="type" value="dvd" onclick="changeToDvd()"><br>
    	Item name:<input type="text" name="itemname"><br>
   		Price:<input type="text" name="price"><br>
   		Description:<input type="text" name="description"><br>
  		Amount:<input type="text" name="amount"><br>
  		<span id="a1">ISBN:</span><input type="text" name="a1"><br>
  		<span id="a2">Publisher:</span><input type="text" name="a2"><br>
  		<span id="a3">Author:</span><input type="text" name="a3"><br>
  		<span id="a4">Gebunde:</span><input type="text" name="a4"><br>
  		<span>Auction</span><input type="checkbox" name=auction value="1" >
  		<span>Hours:</span><input type="text" name="hour" value="0"><span>Minutes:</span><input type="text" name="min" value="0"><br>
  		<input type="submit" value="submit">
  		<input type="reset" value="reset">
    </form>
  </div>
 
